package com.study01;


import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;

public class Demo03 {
    String name;
    int age;

    public Demo03(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public static void main(String[] args) {
        LinkedHashMap<String, String> map = new LinkedHashMap<String, String>();
        map.put("邓超", "孙俪");
        map.put("李晨", "范冰冰");
        map.put("刘德华", "热巴");
        Set<Map.Entry<String, String>> entrySet = map.entrySet();  // entrySet  Collection
        for (Map.Entry<String, String> entry : entrySet) {
            System.out.println(entry.getKey() + " " + entry.getValue());
        }


    }
}
